package com.yunke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 菜单实体类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yunke_menu")
@Schema(name = "YunkeMenu", description = "菜单实体")
public class YunkeMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "菜单ID")
    private Long id;

    @Schema(description = "父菜单ID")
    private Long parentId;

    @Schema(description = "菜单名称")
    private String menuName;

    @Schema(description = "菜单编码")
    private String menuCode;

    @Schema(description = "菜单路径")
    private String path;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "权限标识")
    private String permission;

    @Schema(description = "菜单类型（1目录 2菜单 3按钮）")
    private Integer menuType;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "是否显示（0否 1是）")
    private Boolean visible;

    @Schema(description = "是否启用（0否 1是）")
    private Boolean enabled;

    @Schema(description = "是否缓存（0否 1是）")
    private Boolean keepAlive;

    @Schema(description = "是否外链（0否 1是）")
    private Boolean isFrame;

    @Schema(description = "排序号")
    private Integer sortOrder;

    @Schema(description = "菜单级别")
    private Integer level;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建人ID")
    private Long creatorId;

    @Schema(description = "创建人昵称")
    private String creatorName;

    @Schema(description = "状态（0正常 1删除）")
    private Integer status;

    @Schema(description = "创建时间")
    private Long createTime;

    @Schema(description = "更新时间")
    private Long updateTime;
} 